package com.whcoding.actuator.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-boot-learning
 * @description: 测试bean注入 监控
 * @author: whcoding
 * @create: 2022-07-11 10:35
 **/
@RestController
@RequestMapping("hello")
public class HelloWorldController {

	@Value("${whcodingStr}")
	private String whcoding;

	@RequestMapping("/hello")
	public String hello() {
		return "hello " + whcoding;
	}
}
